#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time: 2022/9/16 0:12
# @Author: 徐洪英
# @Email: xx@gmail.com
# @File：contract_page.py

from selenium.webdriver.common.by import By
from config.config import HOST
from pages.base_page import BasePage
class CrmConPage(BasePage):
    url="http://{}/crm/index.php?m=contract".format(HOST)
    cilck_con_locator = (By.CSS_SELECTOR,"body > div.container > div.row > div:nth-child(1) > div > a")
    def click_add_con(self):
        """点击添加合同"""
        self.driver.find_element(*self.cilck_con_locator).click()